/**
 * @author LKQ
 * @date 2022/1/8 17:20
 * @description 根据ASCII码值求和，差值为多出来的字母
 */
public class FormalSolution {
    public static void main(String[] args) {

    }
    public char findTheDifference(String s, String t) {
        int as = 0, at = 0;
        for (int i = 0; i < s.length(); ++i) {
            as += s.charAt(i);
        }
        for (int i = 0; i < t.length(); ++i) {
            at += t.charAt(i);
        }
        return (char) (at - as);
    }
}
